<?php
echo"计算输入的两个证书加减乘除的结果\n";
echo"输入两个整数，用英文逗号分隔：\n";
$count=fscanf(STDIN,"%d ,%d",$a,$b);
if($count>2){echo"不要输入一些多余的乱七八糟的东西~\n";
}else if($count<2){
    echo"请按要求格式输入数据~\n";
}else
             {$he=$a+$b;
             $cha=$a-$b;$cheng=$a*$b;
             $chu=$a/$b;
             echo"$a+$b=$he\n";
             echo "$a-$b=$cha\n";echo"$a*$b=$cheng\n";
    echo"$a/$b=$chu\n";
}





